package com.pdsu.xpf.graduation01.service;

import com.pdsu.xpf.graduation01.domain.Admin;
import com.pdsu.xpf.graduation01.domain.FeedBack;
import com.pdsu.xpf.graduation01.domain.User;
import com.pdsu.xpf.graduation01.vo.UserVO;

import java.util.List;

public interface IUserService {

     List<User> findAllUser();
     User findUserByUsernameAPassword(String Username,String Password);
     int upDateUserTokenByUserID(String token,int uid);
     User findUserByUsername(String Username);
     int insertUser(User user);

    User findUserByUID(int uid);
     List<UserVO> findAllUserVO();
    List<FeedBack> findAllFeedBack();

    Integer delFeedBackByFID(int fid);

    List<UserVO> searchUserByKey(String key);
    List<Admin> adminLogin(String name, String password);

    Integer addFeedBack(String fname, String msg, String uid, String phone, String date);
    Integer updateUserDATEBYUID(int uid);
}
